import request from '@/utils/request'

// 查询订单详情列表
export function listGoods(query) {
  return request({
    url: '/order/goods/list',
    method: 'get',
    params: query
  })
}

// 查询订单详情详细
export function getGoods(id) {
  return request({
    url: '/order/goods/' + id,
    method: 'get'
  })
}

// 新增订单详情
export function addGoods(data) {
  return request({
    url: '/order/goods',
    method: 'post',
    data: data
  })
}

// 修改订单详情
export function updateGoods(data) {
  return request({
    url: '/order/goods/put',
    method: 'post',
    data: data
  })
}

// 删除订单详情
export function delGoods(id) {
  return request({
    url: '/order/goods/' + id+'/delete',
    method: 'post'
  })
}
